package com.example.wastewater.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wastewater.dao.entity.UserDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 *  用户持久层
 */
public interface UserMapper extends BaseMapper<UserDO> {
    @Select("select name from tb_role where id = #{roleId}")
    String getRoleNameById(@Param("roleId") Integer roleId);
}
